//index.js
//获取应用实例
const app = getApp()
Page({
	data: {
		openid: '',
		shopName: '',
		shopAvatarUrl: '',
		curentNav: 2, //当前导航
		payType: 0,
		totalPrice: 0,
		idCard: 0,
		idCardName: '',
		store_id: 0
	},
	//事件处理函数
	onLoad: function(e) {
		console.log(e)
		if (e.place == 1) {
			this.setData({
				totalPrice: e.money,
				payType: e.place,
			})
		} else {
			this.setData({
				totalPrice: e.money,
				payType: e.place,
				idCard: e.idCard,
				idCardName: e.idCardName
			})
		}
		this.setData({
			store_id: e.store_id
		})

	},
	onReady: function() {
		wx.setNavigationBarTitle({
			title: '提取保证金'
		})
	},
	submit: function(e) {
		console.log(e.detail.value)
		wx.navigateTo({
			url: '/pages/shopBond/shopBond?id=' + this.data.store_id
		})
	}
})
